package com.zhixi.pattern.notimportant.visitorpattern.operation;

/**
 * @作者 ShuHaoNan
 * @邮箱 shuhaonan1@gmail.com
 * @时间 2020/11/20 10:26
 */
public abstract class Employee {

    /* 员工姓名 */
    private String name;
    /* 员工薪水 */
    private int salary;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getSalary() {
        return salary;
    }

    public void setSalary(int salary) {
        this.salary = salary;
    }

    public void report() {
        System.out.println("name='" + name + '\'' + ", salary=" + salary);
    }

    public abstract void accept(IVisitor visitor);

}
